/* 全局样式 */
:root {
  --primary-color: #e66000;
  --secondary-color: #ff9d00;
  --bg-color: #fff;
  --text-color: #333;
  --light-bg: #f9f9f9;
  --border-color: #ddd;
  --box-shadow: 0 2px 5px rgba(0,0,0,0.1);
  --container-width: 1200px;
}

* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

body {
  font-family: 'Helvetica Neue', Arial, sans-serif;
  color: var(--text-color);
  background-color: var(--bg-color);
  line-height: 1.6;
}

/* 容器 */
.container {
  max-width: var(--container-width);
  margin: 0 auto;
  padding: 0 15px;
  width: 100%;
}

/* 顶部导航栏 */
.navbar {
  background: linear-gradient(to right, var(--primary-color), var(--secondary-color));
  color: white;
  padding: 15px 0;
  position: sticky;
  top: 0;
  z-index: 1000;
  box-shadow: var(--box-shadow);
}

.navbar-container {
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.logo {
  font-size: 1.5rem;
  font-weight: bold;
}

.nav-links {
  display: flex;
  list-style: none;
}

.nav-link {
  margin-left: 20px;
  cursor: pointer;
  color: white;
  text-decoration: none;
}

.nav-link:hover {
  text-decoration: underline;
}

.menu-toggle {
  display: none;
  font-size: 1.5rem;
  cursor: pointer;
}

/* 横幅 */
.banner {
  background-image: url('https://gimg2.baidu.com/image_search/src=http%3A%2F%2Fsafe-img.xhscdn.com%2Fbw1%2F43b0cb78-5e1f-4e2e-a77b-3f23c8cc37a6%3FimageView2%2F2%2Fw%2F1080%2Fformat%2Fjpg&refer=http%3A%2F%2Fsafe-img.xhscdn.com&app=2002&size=f9999,10000&q=a80&n=0&g=0n&fmt=auto?sec=1715308797&t=da3af1a0cc7e6edd84eda6ea03de3d5c');
  background-size: cover;
  background-position: center;
  height: 300px;
  display: flex;
  align-items: center;
  justify-content: center;
  color: white;
  text-align: center;
  margin-bottom: 30px;
  position: relative;
}

.banner::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background-color: rgba(0, 0, 0, 0.4);
}

.banner-content {
  position: relative;
  z-index: 1;
}

.banner h1 {
  font-size: 2.5rem;
  margin-bottom: 10px;
  text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.5);
}

.banner p {
  font-size: 1.2rem;
  max-width: 800px;
  margin: 0 auto;
  text-shadow: 1px 1px 2px rgba(0, 0, 0, 0.5);
}

/* 日期选择器 */
.date-picker {
  background-color: var(--light-bg);
  padding: 20px;
  border-radius: 8px;
  margin-bottom: 30px;
  box-shadow: var(--box-shadow);
}

.date-picker h2 {
  margin-bottom: 15px;
  color: var(--primary-color);
}

.date-form {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 15px;
}

.date-form label {
  font-weight: bold;
}

.date-form input[type="date"] {
  padding: 8px 12px;
  border: 1px solid var(--border-color);
  border-radius: 4px;
  font-size: 1rem;
}

.date-form button {
  background-color: var(--primary-color);
  color: white;
  border: none;
  padding: 8px 15px;
  border-radius: 4px;
  cursor: pointer;
  font-size: 1rem;
}

.date-form button:hover {
  background-color: var(--secondary-color);
}

.weather-result {
  margin-top: 15px;
  display: none;
}

.weather-result.active {
  display: block;
}

.weather-cards {
  display: flex;
  flex-wrap: wrap;
  gap: 15px;
  margin-top: 15px;
}

.weather-card {
  background-color: white;
  padding: 15px;
  border-radius: 8px;
  box-shadow: var(--box-shadow);
  min-width: 180px;
  flex: 1;
}

.weather-date {
  font-weight: bold;
  margin-bottom: 5px;
}

/* 主要内容部分 */
.section {
  margin-bottom: 40px;
}

.section-title {
  color: var(--primary-color);
  margin-bottom: 20px;
  padding-bottom: 10px;
  border-bottom: 2px solid var(--primary-color);
}

/* 交通部分 */
.transport-options {
  display: flex;
  flex-wrap: wrap;
  gap: 20px;
  margin-bottom: 20px;
}

.transport-card {
  background-color: var(--light-bg);
  padding: 20px;
  border-radius: 8px;
  box-shadow: var(--box-shadow);
  flex: 1;
  min-width: 250px;
}

.transport-card h3 {
  color: var(--primary-color);
  margin-bottom: 10px;
  display: flex;
  align-items: center;
}

.transport-card h3 i {
  margin-right: 10px;
}

.transport-card ul {
  list-style-type: none;
  margin-left: 20px;
}

.transport-card ul li {
  margin-bottom: 5px;
}

.city-transport {
  margin-top: 20px;
}

.city-transport-options {
  display: flex;
  flex-wrap: wrap;
  gap: 15px;
}

.city-transport-option {
  background-color: white;
  padding: 15px;
  border-radius: 8px;
  box-shadow: var(--box-shadow);
  flex: 1;
  min-width: 200px;
}

.city-transport-option h4 {
  color: var(--primary-color);
  margin-bottom: 10px;
  display: flex;
  align-items: center;
}

.city-transport-option h4 i {
  margin-right: 10px;
}

/* 景点部分 */
.attractions {
  margin-bottom: 20px;
}

.attraction-cards {
  display: flex;
  flex-wrap: wrap;
  gap: 20px;
}

.attraction-card {
  background-color: var(--light-bg);
  border-radius: 8px;
  overflow: hidden;
  box-shadow: var(--box-shadow);
  flex: 1;
  min-width: 300px;
  max-width: calc(33.333% - 20px);
  transition: transform 0.3s ease;
}

.attraction-card:hover {
  transform: translateY(-5px);
}

.attraction-img {
  height: 200px;
  overflow: hidden;
}

.attraction-img img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.3s ease;
}

.attraction-card:hover .attraction-img img {
  transform: scale(1.05);
}

.attraction-details {
  padding: 15px;
}

.attraction-name {
  font-size: 1.2rem;
  color: var(--primary-color);
  margin-bottom: 10px;
}

.attraction-info {
  list-style-type: none;
}

.attraction-info li {
  margin-bottom: 5px;
  display: flex;
  align-items: center;
}

.attraction-info li i {
  margin-right: 10px;
  color: var(--primary-color);
  min-width: 16px;
}

/* 酒店部分 */
.accommodations {
  margin-bottom: 20px;
}

.accommodation-cards {
  display: flex;
  flex-wrap: wrap;
  gap: 20px;
}

.accommodation-card {
  background-color: var(--light-bg);
  border-radius: 8px;
  overflow: hidden;
  box-shadow: var(--box-shadow);
  flex: 1;
  min-width: 300px;
  max-width: calc(50% - 20px);
  transition: transform 0.3s ease;
}

.accommodation-card:hover {
  transform: translateY(-5px);
}

.accommodation-img {
  height: 200px;
  overflow: hidden;
}

.accommodation-img img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.3s ease;
}

.accommodation-card:hover .accommodation-img img {
  transform: scale(1.05);
}

.accommodation-details {
  padding: 15px;
}

.accommodation-name {
  font-size: 1.2rem;
  color: var(--primary-color);
  margin-bottom: 10px;
}

.accommodation-info {
  list-style-type: none;
}

.accommodation-info li {
  margin-bottom: 5px;
  display: flex;
  align-items: flex-start;
}

.accommodation-info li i {
  margin-right: 10px;
  color: var(--primary-color);
  min-width: 16px;
  margin-top: 5px;
}

/* 行程安排部分 */
.itinerary {
  margin-bottom: 20px;
}

.itinerary-days {
  display: flex;
  flex-direction: column;
  gap: 20px;
}

.itinerary-day {
  background-color: var(--light-bg);
  border-radius: 8px;
  padding: 20px;
  box-shadow: var(--box-shadow);
}

.itinerary-day-title {
  color: var(--primary-color);
  margin-bottom: 15px;
  display: flex;
  align-items: center;
}

.itinerary-day-title i {
  margin-right: 10px;
}

.itinerary-activities {
  list-style-type: none;
}

.itinerary-activity {
  margin-bottom: 10px;
  padding-bottom: 10px;
  border-bottom: 1px solid var(--border-color);
  display: flex;
}

.itinerary-activity:last-child {
  border-bottom: none;
}

.activity-time {
  font-weight: bold;
  margin-right: 15px;
  min-width: 80px;
}

.activity-info {
  flex: 1;
}

/* 网红打卡地部分 */
.photo-spots {
  margin-bottom: 20px;
}

.photo-spot-cards {
  display: flex;
  flex-wrap: wrap;
  gap: 20px;
}

.photo-spot-card {
  background-color: var(--light-bg);
  border-radius: 8px;
  overflow: hidden;
  box-shadow: var(--box-shadow);
  flex: 1;
  min-width: 250px;
  max-width: calc(25% - 20px);
  transition: transform 0.3s ease;
}

.photo-spot-card:hover {
  transform: translateY(-5px);
}

.photo-spot-img {
  height: 180px;
  overflow: hidden;
}

.photo-spot-img img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.3s ease;
}

.photo-spot-card:hover .photo-spot-img img {
  transform: scale(1.05);
}

.photo-spot-details {
  padding: 15px;
}

.photo-spot-name {
  font-size: 1.1rem;
  color: var(--primary-color);
  margin-bottom: 10px;
}

.photo-spot-info {
  list-style-type: none;
}

.photo-spot-info li {
  margin-bottom: 5px;
  display: flex;
  align-items: flex-start;
}

.photo-spot-info li i {
  margin-right: 10px;
  color: var(--primary-color);
  min-width: 16px;
  margin-top: 5px;
}

/* 美食部分 */
.food {
  margin-bottom: 20px;
}

.food-categories {
  display: flex;
  flex-wrap: wrap;
  gap: 20px;
}

.food-category {
  background-color: var(--light-bg);
  border-radius: 8px;
  padding: 20px;
  box-shadow: var(--box-shadow);
  flex: 1;
  min-width: 300px;
}

.food-category h3 {
  color: var(--primary-color);
  margin-bottom: 15px;
  display: flex;
  align-items: center;
}

.food-category h3 i {
  margin-right: 10px;
}

.food-list {
  list-style-type: none;
}

.food-item {
  margin-bottom: 10px;
  padding-bottom: 10px;
  border-bottom: 1px solid var(--border-color);
}

.food-item:last-child {
  border-bottom: none;
}

.food-name {
  font-weight: bold;
  margin-bottom: 5px;
}

.food-desc {
  color: #666;
  font-size: 0.9rem;
}

/* 其他建议部分 */
.tips {
  margin-bottom: 20px;
}

.tips-cards {
  display: flex;
  flex-wrap: wrap;
  gap: 20px;
}

.tips-card {
  background-color: var(--light-bg);
  border-radius: 8px;
  padding: 20px;
  box-shadow: var(--box-shadow);
  flex: 1;
  min-width: 300px;
}

.tips-card h3 {
  color: var(--primary-color);
  margin-bottom: 15px;
  display: flex;
  align-items: center;
}

.tips-card h3 i {
  margin-right: 10px;
}

.tips-list {
  list-style-type: none;
}

.tips-list li {
  margin-bottom: 8px;
  display: flex;
  align-items: flex-start;
}

.tips-list li i {
  margin-right: 10px;
  color: var(--primary-color);
  min-width: 16px;
  margin-top: 5px;
}

/* 页脚 */
.footer {
  background-color: #333;
  color: white;
  padding: 30px 0;
  margin-top: 30px;
}

.footer-content {
  display: flex;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 20px;
}

.footer-section {
  flex: 1;
  min-width: 250px;
}

.footer-section h3 {
  margin-bottom: 15px;
  color: var(--secondary-color);
}

.footer-links {
  list-style: none;
}

.footer-links li {
  margin-bottom: 8px;
}

.footer-links a {
  color: #ccc;
  text-decoration: none;
}

.footer-links a:hover {
  color: white;
}

.footer-bottom {
  text-align: center;
  padding-top: 20px;
  margin-top: 20px;
  border-top: 1px solid #444;
}

/* 打印样式 */
.print-toggle {
  position: fixed;
  right: 20px;
  bottom: 20px;
  background-color: var(--primary-color);
  color: white;
  border: none;
  padding: 10px 15px;
  border-radius: 4px;
  cursor: pointer;
  font-size: 1rem;
  display: flex;
  align-items: center;
  box-shadow: var(--box-shadow);
  z-index: 100;
}

.print-toggle i {
  margin-right: 8px;
}

.print-toggle:hover {
  background-color: var(--secondary-color);
}

.print-mode {
  background-color: white;
  color: black;
}

.print-mode .navbar,
.print-mode .footer,
.print-mode .print-toggle {
  display: none;
}

.print-mode .container {
  max-width: 100%;
  width: 100%;
  padding: 20px;
}

.print-mode .section {
  page-break-inside: avoid;
}

/* 响应式设计 */
@media (max-width: 992px) {
  .attraction-card,
  .photo-spot-card {
    max-width: calc(50% - 20px);
  }
}

@media (max-width: 768px) {
  .navbar-container {
    flex-direction: column;
    align-items: flex-start;
  }
  
  .logo {
    margin-bottom: 10px;
  }
  
  .nav-links {
    flex-direction: column;
    width: 100%;
    display: none;
  }
  
  .nav-links.active {
    display: flex;
  }
  
  .nav-link {
    margin: 8px 0;
  }
  
  .menu-toggle {
    display: block;
    position: absolute;
    top: 15px;
    right: 15px;
  }
  
  .banner {
    height: 200px;
  }
  
  .banner h1 {
    font-size: 1.8rem;
  }
  
  .banner p {
    font-size: 1rem;
  }
  
  .transport-card,
  .attraction-card,
  .accommodation-card,
  .photo-spot-card {
    min-width: 100%;
    max-width: 100%;
  }
  
  .date-form {
    flex-direction: column;
    align-items: flex-start;
  }
  
  .date-form input[type="date"] {
    width: 100%;
  }
}

@media print {
  body {
    font-size: 12pt;
    line-height: 1.5;
  }
  
  .navbar,
  .footer,
  .print-toggle,
  .date-picker button {
    display: none !important;
  }
  
  .container {
    max-width: 100%;
    width: 100%;
    padding: 0;
  }
  
  .section {
    page-break-inside: avoid;
    margin-bottom: 20pt;
  }
  
  .banner {
    height: auto;
    color: black;
    margin-bottom: 15pt;
  }
  
  .banner::before {
    display: none;
  }
  
  .banner h1 {
    font-size: 20pt;
    text-shadow: none;
  }
  
  .banner p {
    font-size: 12pt;
    text-shadow: none;
  }
  
  .attraction-card,
  .accommodation-card,
  .photo-spot-card {
    page-break-inside: avoid;
    box-shadow: none;
    border: 1px solid #ccc;
  }
  
  .attraction-img,
  .accommodation-img,
  .photo-spot-img {
    height: 150pt;
  }
  
  .attraction-card,
  .photo-spot-card {
    width: 100%;
    max-width: 100%;
    flex: none;
  }
  
  .weather-cards {
    flex-direction: row;
  }
  
  .weather-card {
    width: 25%;
    box-shadow: none;
    border: 1px solid #ccc;
  }
} 